package com.example.qxfw.ybzz.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.example.qxfw.common.entity.xt.Permissions;
import com.example.qxfw.ybzz.mapper.PermissionsMapper;
import com.example.qxfw.ybzz.service.PermissionsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PermissionsServiceImpl implements PermissionsService {

    @Autowired
    private PermissionsMapper permissionsMapper;

    @Override
    public List<Permissions> getList(String permission) {
        QueryWrapper queryWrapper = new QueryWrapper();
        queryWrapper.eq("permission",permission);
        List<Permissions> permissions = permissionsMapper.selectList(queryWrapper);
        return permissions;
    }
}
